using Aliphant.Mvvm.XEvent.Interface;
using Aliphant.Mvvm.XEvent.Models;
using Aliphant.Mvvm.XEvent.UI;
using GrpcClient.Managers;

namespace GrpcClient.ViewModels
{
    public class UserCenterControlViewModel : BindableBase, INavigate
    {
        public UserCenterControlViewModel()
        {

        }

        private string _userName = string.Empty;
        public string UserName { get => _userName; set => SetProperty(ref _userName, value); }


        public void OnNavigateTo(NavigateParameter navigateParameter)
        {
            UserName = UserManager.Instance.CurrentUser?.Name ?? string.Empty;
        }
    }
}
